package cn.stylefeng.guns.modular.pandian.mapper;

import cn.stylefeng.guns.modular.pandian.entity.PandianDetailed;
import cn.stylefeng.guns.modular.pandian.model.params.PandianDetailedParam;
import cn.stylefeng.guns.modular.pandian.model.result.PandianDetailedResult;
import cn.stylefeng.guns.modular.pandian.model.result.PandianJihuaUserResult;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 盘点库存明细表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2022-01-10
 */
public interface PandianDetailedMapper extends BaseMapper<PandianDetailed> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2022-01-10
     */
    List<PandianDetailedResult> customList(@Param("paramCondition") PandianDetailedParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2022-01-10
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") PandianDetailedParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2022-01-10
     */
    Page<PandianDetailedResult> customPageList(@Param("page") Page page, @Param("paramCondition") PandianDetailedParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2022-01-10
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") PandianDetailedParam paramCondition);

	List<PandianDetailedResult> findPanDianPositionListBySpec(@Param("paramCondition")PandianDetailedParam pandianDetailedParam, @Param("userId")Long userId,
			@Param("diskId")Long diskId);

	PandianDetailedResult findPanDianPositionBySpec(@Param("paramCondition")PandianDetailedParam pandianDetailedParam, @Param("userId")Long userId,
			@Param("diskId")Long diskId);

	List<PandianDetailedResult> findPanDianGoodsListBySpec(@Param("paramCondition")PandianDetailedParam pandianDetailedParam, @Param("userId")Long userId,
			@Param("diskId")Long diskId);

	List<PandianDetailedResult> findPanDianTrayListBySpec(@Param("paramCondition")PandianDetailedParam pandianDetailedParam, @Param("userId")Long userId,
			@Param("diskId")Long diskId);

	PandianDetailedResult sumByspec(@Param("paramCondition")PandianDetailedParam param);

	boolean saveBatchList(@Param("list")List<PandianDetailedParam> addlist);

}
